package main

import (
	"demos/config"
	"demos/router"
	"github.com/joho/godotenv"
)

// 主函数
func main() {
	err := godotenv.Load()
	if err != nil {
		return
	}
	config.InitDB()
	r := router.SetupRouter()
	err = r.Run(":8080")
	if err != nil {
		return
	}
}
